<jsp:include page="modules/header.jsp">
    <jsp:param name="active" value="home"/>
    <jsp:param name="webTitle" value="Confirm Payment"/>
</jsp:include>

<%@page import="java.util.*" %>

<div id="page">
    <%
           ArrayList orderDetailList = (ArrayList) session.getAttribute("orderDetailList");

    %>

    <table>
        <tr>
            <th> Item Name </th>
            <th> Price </th>
            <th> Quantity </th>
            <th> TotalPrice </th>
            <th> Discount(%) </th>
            <th> Final Price  </th>
            <th> Delete </th>
        </tr>
        <% for (int i = 0; i < orderDetailList.size(); i++) {
                hbPackage.orderDetailClass _orderDetail = (hbPackage.orderDetailClass) orderDetailList.get(i);
        %>
        <tr>
            <td><%= _orderDetail.getItemName()%></td>
            <td><%= _orderDetail.getPrice()%></td>
            <td><%= _orderDetail.getQuantity()%></td>
            <td><%= _orderDetail.getTotalPrice()%></td>
            <td><%= _orderDetail.getDiscount()%></td>
            <td><%= _orderDetail.getFinalPrice()%></td>
            <td>deleteButton</td>
        </tr>

        <%
            }//close loop
        %>
    </table>
    <form action="../registerPaymentSvl" method="post">
        <input type="submit" value="Confirm" name="btn_submit" />
        <input type="submit" value="Cancel" name="btn_submit" />
        <input type="button" value="Add More" onclick="history.go(-1)" />
    </form>
</div>



<jsp:include page="modules/footer.jsp"></jsp:include>